/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.nodes.objects;
import pl.edu.amu.wmi.kino.visualjavafx.nodes.objects.helpers.JavaFxChildren;
import java.beans.IntrospectionException;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Application;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Frame;
import pl.edu.amu.wmi.kino.visualjavafx.nodes.objects.helpers.JavaFxNode;

/**
 * 
 * @author psychollek
 */
public class ApplicationNode extends JavaFxNode<Application>{

    public ApplicationNode( Application app ) throws IntrospectionException {
            super(app, new ApplicationChildren(app));
    }

}

class ApplicationChildren extends JavaFxChildren<Frame>{

    private Application app = null;

    ApplicationChildren(Application app) {
        this.app = app;
    }

    @Override
    public void addNotify(){
        this.setKeys(app.getFrames());
    }

}